package com.genexususa.eo.connection.google.test.reports;

import com.genexususa.eo.connection.google.analytics.AnalyticsManager;

public class ConsumeGetConversions {


    public static void main(String[] args){

        String xml = "<GoogleAnalyticsQuery xmlns=\"L2TMedia1.5\">\n" +
                "\t<filePath>C:\\L2T\\nbov</filePath>\n" +
                "\t<applicationName>L2TMEDIA</applicationName>\n" +
                "\t<profileId>65564632</profileId>\n" +
                "\t<startDate>2014-08-01</startDate>\n" +
                "\t<endDate>2014-08-31</endDate>\n" +
                "\t<dimensions>\n" +
                "\t\t<Item>mcf:conversionType</Item>\n" +
                "\t\t<Item>mcf:adwordsCampaignID</Item>\n" +
                "\t</dimensions>\n" +
                "\t<metrics>\n" +
                "\t\t<Item>mcf:assistedConversions</Item>\n" +
                "\t</metrics>\n" +
                "\t<maxResults>0</maxResults>\n" +
                "</GoogleAnalyticsQuery>";

        System.out.println(xml);

        AnalyticsManager am = new AnalyticsManager();
        String res = am.getConversions(xml);

        System.out.println(res);
    }

}
